home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Views / Arrangements / ArrangementLoop.cp < prev    next >
Text File  |  1997-06-28  |  379b  |  20 lines

  1. // ArrangementLoop.cp
  2.  
  3. #ifndef ArrangementLoop_h
  4. #include "ArrangementLoop.h"
  5. #endif
  6.  
  7. ArrangementLoop::ArrangementLoop( ArrangementBase& theArrangement )
  8.   : arrangement( theArrangement ),
  9.      index( 0 )
  10.   {
  11.     for ( ; Unfinished() && (*this)->IsEmpty(); index++ )
  12.         ;
  13.   }
  14.  
  15. void ArrangementLoop::operator++()
  16.   {
  17.     for ( index++; Unfinished() && (*this)->IsEmpty(); index++ )
  18.         ;
  19.   }
  20.